import request from '@/utils/request'

var myurl = '/xl/regisList';
// 修改用户挂号单的状态（收费与未收费）
export function setStatusa(patientId,patientStatus) {
  return request({
    url: myurl+'/updateStatus',
    method: 'get',
    params: {patientId,patientStatus}
  })
}// 查询状态的数字之间转换
export function registerStatus(query,type) {
  return request({
    url: '/his/doctor/statusType',
    method: 'get',
    params: {query,type}
  })
}
// 查询操作日志列表
export function listPost(query) {
  return request({
    url: myurl+'/list',
    method: 'get',
    params: query
  })
}
// 挂号类型下拉框内容查询
export function listRegistr() {
  return request({
    url: myurl+'/listRegistrs',
    method: 'get'
  })
}

// 科室下拉框内容查询
export function listDepts() {
  return request({
    url: myurl+'/listDepts',
    method: 'get'
  })
}

// 删除操作日志
export function delOperlog(operId) {
  return request({
    url:myurl+'/'+operId,
    method: 'delete'
  })
}

// 清空操作日志
export function cleanOperlog() {
  return request({
    url: '/monitor/operlog/clean',
    method: 'delete'
  })
}

// 导出操作日志
export function exportOperlog(query) {
  return request({
    url: '/monitor/operlog/export',
    method: 'get',
    params: query
  })
}
